Ext.define('console.deptScoreRecordQueryWindow', {
    extend: 'Ext.ux.desktop.Module',

    requires: [
        'console.store.deptScoreRecordQueryWindow',
        'Ext.data.ArrayStore',
        'Ext.util.Format',
        'Ext.grid.Panel',
        'Ext.grid.RowNumberer'
    ],

    id: 'deptScoreRecordQueryWindow',
    init: function () {
        this.launcher = {
            text: '满意度明细',
            iconCls: 'icon-grid'
        };
    },

    createWindow: function () {
        var desktop = this.app.getDesktop();
        var win = desktop.getWindow('deptScoreRecordQueryWindow');
        if (!win) {
            win = desktop.createWindow({
                id: 'deptScoreRecordQueryWindow',
                title: '满意度明细',
                width: 740,
                height: 480,
                iconCls: 'icon-grid',
                animCollapse: false,
                constrainHeader: true,
                layout: 'fit',
                items: [
                    {
                        border: false,
                        xtype: 'grid',
                        store: Ext.createWidget('deptScoreRecordQueryWindow'),
                        columns: [
                            new Ext.grid.RowNumberer(),
                            {
                                text: "评价科室",
                                width: '15%',
                                sortable: true,
                                dataIndex: 'username'
                            },
                            {
                                text: "所在组",
                                width: '15%',
                                sortable: true,
                                dataIndex: 'realName'
                            },
                            {
                                text: "第1个问题",
                                width: '15%',
                                sortable: true,
                                dataIndex: 'realName'
                            },
                            {
                                text: "第2个问题",
                                width: '15%',
                                sortable: true,
                                dataIndex: 'realName'
                            },
                            {
                                text: "第3个问题",
                                width: '15%',
                                sortable: true,
                                dataIndex: 'realName'
                            },
                            {
                                text: "第4个问题",
                                width: '15%',
                                sortable: true,
                                dataIndex: 'realName'
                            },
                            {
                                text: "第5个问题",
                                width: '15%',
                                sortable: true,
                                dataIndex: 'realName'
                            },
                            {
                                text: "第6个问题",
                                width: '15%',
                                sortable: true,
                                dataIndex: 'realName'
                            },
                            {
                                text: "第7个问题",
                                width: '15%',
                                sortable: true,
                                dataIndex: 'realName'
                            },
                            {
                                text: "第8个问题",
                                width: '15%',
                                sortable: true,
                                dataIndex: 'realName'
                            },
                            {
                                text: "第9个问题",
                                width: '15%',
                                sortable: true,
                                dataIndex: 'realName'
                            },
                            {
                                text: "第10个问题",
                                width: '15%',
                                sortable: true,
                                dataIndex: 'realName'
                            }
                        ]
                    }
                ]
            });
        }
        return win;
    }
})
;

